package com.warmheart.entity.user;


import com.warmheart.base.entity.BaseEntity;
import com.warmheart.builder.user.UserRoleMapCoBuilder;
import com.warmheart.builder.user.UserRoleMapRsBuilder;

/**
 * 
 * @ClassName: UserRoleMap
 * @Description: 用户角色关联实体类，对应表名称为tb_user_role_map
 *               温馨提示：不要修改该实体类的任何字段
 * @author ZhangJianyang
 * @date 2025年06月16日 下午13:05:35
 *
 */
public class UserRoleMap extends BaseEntity<UserRoleMapCoBuilder, UserRoleMapRsBuilder> {

	private static final long serialVersionUID = 1L;
	
	/**
     * 
     * @Title: tableName
     * @Description: 表名称
     * @author ZhangJianyang
     * @return
     */
    @Override
    public String tableName() {
        return "tb_user_role_map";
    }

    public UserRoleMapCoBuilder coBuilder() {
        return new UserRoleMapCoBuilder(this);
    }

    public UserRoleMapRsBuilder rsBuilder() {
        return new UserRoleMapRsBuilder(this);
    }

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 角色ID
     */
    private Integer roleId;

    /**
     * 
     * @Title: getUserId
     * @Description: 用户IDgetter方法
     * @author ZhangJianyang
     * @return
     */
    public Integer getUserId(){
        return userId;
    }
    
    /**
     * 
     * @Title: setUserId
     * @Description: 用户IDsetter方法
     * @author ZhangJianyang
     * @param userId
     */
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    /**
     * 
     * @Title: getRoleId
     * @Description: 角色IDgetter方法
     * @author ZhangJianyang
     * @return
     */
    public Integer getRoleId(){
        return roleId;
    }
    
    /**
     * 
     * @Title: setRoleId
     * @Description: 角色IDsetter方法
     * @author ZhangJianyang
     * @param roleId
     */
    public void setRoleId(Integer roleId){
        this.roleId = roleId;
    }
}
